package com.zhima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhima.dto.ContestQuestionDTO;
import com.zhima.entity.OjQuestionBindContest;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhima
 * @since 2024-01-18
 */
public interface OjQuestionBindContestService extends IService<OjQuestionBindContest> {

    List<OjQuestionBindContest> listQuestionInfoByContestId(Long contestId);

    boolean bindQuestionToContest(Long userId, OjQuestionBindContest contestBindQuestion);

    boolean changeQuestionIndex(Long userId, Long contestId, ContestQuestionDTO[] afterSequence);

    boolean unbindQuestionToContest(Long userId, Long contestId, Integer questionIndex);
}
